<template>
	<view class="">
		<web-view :webview-styles="webviewStyles" :src="'http://vr.toshui.com?v=' + v"></web-view>
	</view>
</template>

<script>
	import _data from '@/common/_data.js';
	
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				},
				v: _data.data('version')
			}
		},
		onLoad() {
			// #ifdef APP-PLUS
			const pages = getCurrentPages()
			const page = pages[pages.length - 1];
			const currentWebview = page.$getAppWebview()
			currentWebview.setStyle({
				titleNView:{
					buttons:[{
						float:'right',
						type:'close',
						onclick:function(){
							uni.reLaunch({
								url: '../../index'
							})
						}
					}]
				}
			})
			// #endif
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	
</style>
